package cn.zut.edu.dao;

import cn.zut.edu.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;

import javax.annotation.Resource;
import java.util.List;

public class AbstractStudentDao implements StudentDao {

    JdbcTemplate jdbcTemplate;
    List<Student> students;

    @Override
    public void insertStudent(Student student) {

    }

    @Override
    public List<Student> queryAll() {
        return null;
    }



    @Autowired
    public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
        this.jdbcTemplate = jdbcTemplate;
    }


    @Resource(name = "list")
    public void setStudents(List<Student> students) {
        this.students = students;
    }
}
